package com.jhw.ymcc.constants;

public class IntegralConstants {

    public static final Integer REGISTER_INTEGRAL = 10;
    public static final String INTEGRAL_FROM_REGISTER = "积分来源于推荐人注册成功";
    public static final String INTEGRAL_FROM_REFER = "积分来源于推荐人购课成功";
    public static final String INTEGRAL_FROM_BUY_COURSE = "积分来源于购买课程";
    public static final String INTEGRAL_FROM_RECHARGE = "积分来源于充值金额";
    public static final String INTEGRAL_FROM_PAY = "支付积分抵扣";
    // 添加积分
    public static final Integer INTEGRAL_STATE_ADD = 1;
    // 减少积分
    public static final Integer INTEGRAL_STATE_REDUCE = 2;
    public static final Double INTEGRAL_RATIO_FROM_REFER = 0.03;
    public static final Double INTEGRAL_RATIO_FROM_BUY_COURSE = 0.05;
    public static final Double INTEGRAL_RATIO_FROM_RECHARGE = 0.05;
    public static final Double INTEGRAL_RATIO_FROM_DEDUCTION = 0.1;
    // 向下取整
    public static final Integer INTEGRAL_ROUNDING_METHOD = 0;
}
